package cn.wolfcode.edu.mapper;

import cn.wolfcode.edu.domain.Classroom;
import cn.wolfcode.edu.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ClassroomMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Classroom record);

    Classroom selectByPrimaryKey(Long id);

    List<Classroom> selectAll();

    int updateByPrimaryKey(Classroom record);

    List<Classroom> queryForList(QueryObject qo);

    int queryForRows();

    Classroom getByName(String name);

    /**
     * 查询所有没有启用的教室
     * @return
     */
    List<Classroom> listAllClassroomExStatus();

    void enableClassroom(@Param("id") Long id, @Param("statusNum") Long statusNum);

    void disableClassroom(Long classroomId);
}